# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=coreshot
pkgver=4.4.0
pkgrel=1
pkgdesc="A screen capture utility from C-Suite"
arch="all"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev libcprime-dev qt5-qtx11extras-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/coreshot/-/archive/v$pkgver/coreshot-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check"

build() {
	cmake -B build \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
126a454254c7d0e5fe76475b06040e1b31d82256c7ec32c5ac632ab343a6a9aeb6b3b4d919149afff644240d4195f89453cb55a7bfa9099993520ff5d9b75eb3  coreshot-4.4.0.tar.gz
"
